package org.example.service;

import org.example.factory.OpenFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
@Component
@FeignClient(value = "cloud-producer",fallbackFactory = OpenFeignFallbackFactory.class)
public interface OpenFeignClient {
    @GetMapping("/testOpenFeign")
    String testOpenFeign();
}
